Frequently asked questions and answers about FlashAir
Providing frequently asked questions and answers about FlashAir. If you do not find the answer you're looking for, please post your question to the Developer Forum.
DHCP_Enabled=NO
IP_Address=192.168.43.10
Subnet_Mask=255.255.255.0
Default_Gateway=192.168.43.1
fa.ip("192.168.11.2", "255.255.255.0", "192.168.11.1")
For more
information about the each above, see
API Guide - CONFIG and
Lua Function Reference - ip.
http://flashair/command.cgi?op=...&TIME=100 // First GET request
http://flashair/command.cgi?op=...&TIME=101 // Second GET request
http://flashair/command.cgi?op=...&TIME=102 // Third GET request
// Repeat similarly to the above.
local response = fa.request("http://flashair/command.cgi?op=190&CTRL=0x00&DATA=0x00")
local gpio = cjson.decode(response)
local status = gpio["STATUS"]
if status == "OK" then
-- GPIO function is enabled
elseif status == "SDERR" then
-- GPIO function is disable
end
The response of CGI executed in the first line of the above code will be, for example,
{"STATUS":"OK", "CTRL":"0x00", "DATA":"0x00"}
, and a status of GPIO
function can be determined by the value of STATUS.